import { RouteRecordRaw } from 'vue-router'

const asyncRoutes: Array<RouteRecordRaw> = [
  // dashboard
  {
    name: 'Dashboard',
    path: '/dashboard',
    component: () => import('@/views/dashboard/index.vue')
  },
  // 客户管理 - 网吧管理
  {
    name: 'Icafe',
    path: '/customer/icafe',
    component: () => import('@/views/customer/icafe/index.vue')
  },
  // 客户管理 - 分类管理
  {
    name: 'Category',
    path: '/customer/category',
    component: () => import('@/views/customer/category/index.vue')
  },
  // 客户管理 - 用户管理
  {
    name: 'User',
    path: '/customer/user',
    component: () => import('@/views/customer/user/index.vue')
  },
  // 系统管理 - 运营商管理
  {
    name: 'Isp',
    path: '/customer/isp',
    component: () => import('@/views/customer/isp/index.vue')
  },
  // 企业管理 - 员工管理
  {
    name: 'Staff',
    path: '/company/staff',
    component: () => import('@/views/company/staff/index.vue')
  },
  // 企业管理 - 部门管理
  {
    name: 'Department',
    path: '/company/department',
    component: () => import('@/views/company/department/index.vue')
  },
  // 企业管理 - 角色管理
  {
    name: 'Role',
    path: '/company/role',
    component: () => import('@/views/company/role/index.vue')
  },
  // 系统管理 - 参数配置
  {
    name: 'Profile',
    path: '/system/profile',
    component: () => import('@/views/system/profile/index.vue')
  },
  // 系统管理 - 菜单管理
  {
    name: 'Menu',
    path: '/system/menu',
    component: () => import('@/views/system/menu/index.vue')
  }
]

export default asyncRoutes

export const firstRoute = asyncRoutes[0].path
